package com.jackson0714.passjava.member.config;

import com.fasterxml.jackson.databind.json.JsonMapper;
import com.google.common.base.Objects;
import com.jackson0714.common.utils.R;
import feign.Logger;
import feign.Response;
import feign.Util;
import feign.codec.ErrorDecoder;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.io.IOException;

/**
  * @Description:描述
  * @Version v1.0.0
  * @author zhangpeng148
  * @date 2022/1/19 17:17
  */
@Configuration
@Slf4j
public class FeignLogConfig {
    /**
     * 1.NONE，不记录任何日志
     * 2.BASIC，仅记录请求方法、URL以及响应状态码和执行时间
     * 3.HEADRES，除了BASIC以外的还会记录请求和响应的头信息
     * 4.FULL,所有
      */
    @Bean
    Logger.Level feignLogger(){
        return Logger.Level.FULL;
    }

}


